<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
                <%@ taglib prefix="c" 
           uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>首页</title>
</head>
<body style="margin: 0 auto">
	<h1 align="center">指纹采集系统平台</h1>
	<hr>
	<div align="center">
		<table align="center" background="#E5F3FB" border="3">
			<caption>信息列表</caption>
			
			<tbody>
			<c:if test="${listflag=='area' }">
			<tr><th>地区ID</th><th>地区名称</th><th>地区描述</th><th>地区AP点数</th></tr>
				<c:forEach items="${list }" var="area">
					<tr>
					<td>${area.area_id }</td><td>${area.area_name }</td><td>${area.area_description }</td><td>${area.area_apnum }</td>
					</tr>
				</c:forEach>
			</c:if>
			
			<c:if test="${listflag=='ap' }">
			<tr><th>AP ID</th><th>AP 名称</th><th>AP mac</th><th>坐标ID</th><th>AP描述</th></tr>
				<c:forEach items="${list }" var="ap">
					<tr>
					<td>${ap.ap_id }</td><td>${ap.ap_name }</td><td>${ap.ap_mac }</td><td>${ap.po_id }</td><td>${ap.ap_description }</td>
					</tr>
				</c:forEach>
			</c:if>
			<c:if test="${listflag=='ap' }">
			<tr><th>坐标 ID</th><th>坐标名称</th><th>区域ID</th><th>坐标x</th><th>坐标y</th></tr>
				<c:forEach items="${plist }" var="po">
					<tr>
					<td>${po.po_id }</td><td>${po.po_name }</td><td>${po.area_id }</td><td>${po.po_x }</td><td>${po.po_y }</td>
					</tr>
				</c:forEach>
			</c:if>
			<hr>
			
			</tbody>
		</table>
	
	</div>
</body>
</html>